package com.fl.dao;

import java.util.concurrent.atomic.AtomicInteger;

public class Test {
   private final static AtomicInteger atomicInteger = new AtomicInteger();
    public static class Get extends Thread{
        @Override
        public void run() {
            atomicInteger.incrementAndGet();
        }
    }
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            new Get().start();
        }
        System.out.println(atomicInteger.get());
    }
}
